eric7.EricWidgets.EricPasswordDialog

Module implementing a specialized dialog for entering secrets.

Global Attributes

None

Classes

EricPasswordDialog Class implementing a specialized dialog for entering secrets.

Functions

getPassword Function to show a dialog for entering a password.
getPin Function to show a dialog for entering a pin.
getToken Function to show a dialog for entering a token.


EricPasswordDialog

Class implementing a specialized dialog for entering secrets.

Derived from

QDialog

Class Attributes

None

Class Methods

None

Methods

EricPasswordDialog Constructor
password Public method to get the entered password.
setCancelButtonText Public method to set the text of the 'Cancel' button.
setLabelText Public method to set the text of the message label.
setOkButtonText Public method to set the text of the 'Ok' button.
setPassword Public method to set the contents of the password edit.
setPasswordEditMode Public method to set the mode of the password edit.
setUserStrings Public method to set the strings in User mode.

Static Methods

None

EricPasswordDialog (Constructor)

EricPasswordDialog(parent=None)

Constructor

parent (QWidget (optional))
reference to the parent widget (defaults to None)

EricPasswordDialog.password

password()

Public method to get the entered password.

Return:
entered password
Return Type:
str

EricPasswordDialog.setCancelButtonText

setCancelButtonText(text)

Public method to set the text of the 'Cancel' button.

text (str)
text for the 'Cancel' button

EricPasswordDialog.setLabelText

setLabelText(text)

Public method to set the text of the message label.

text (str)
message text

EricPasswordDialog.setOkButtonText

setOkButtonText(text)

Public method to set the text of the 'Ok' button.

text (str)
text of the 'Ok' button

EricPasswordDialog.setPassword

setPassword(password)

Public method to set the contents of the password edit.

password (str)
password to be set

EricPasswordDialog.setPasswordEditMode

setPasswordEditMode(mode)

Public method to set the mode of the password edit.

mode (EricPasswordEditMode)
mode of the edit

EricPasswordDialog.setUserStrings

setUserStrings(checkedToolTip="", uncheckedToolTip="", editToolTip="")

Public method to set the strings in User mode.

checkedToolTip (str (optional))
tool tip text for the visibility button of the password edit in checked state (defaults to "")
uncheckedToolTip (str (optional))
tool tip text for the visibility button of the password edit in unchecked state (defaults to "")
editToolTip (str (optional))
tool tip text for the line edit of the password edit (defaults to "")
Up


getPassword

getPassword(parent, title, label, password="")

Function to show a dialog for entering a password.

parent (QWidget)
reference to the parent widget
title (str)
title of the dialog
label (str)
message text to be shown
password (str (optional))
password to be set (defaults to "")
Return:
tuple containing the entered password and a flag indicating that the 'Ok' button was pressed
Return Type:
tuple of (str, bool)
Up


getPin

getPin(parent, title, label, pin="")

Function to show a dialog for entering a pin.

parent (QWidget)
reference to the parent widget
title (str)
title of the dialog
label (str)
message text to be shown
pin (str (optional))
pin to be set (defaults to "")
Return:
tuple containing the entered pin and a flag indicating that the 'Ok' button was pressed
Return Type:
tuple of (str, bool)
Up


getToken

getToken(parent, title, label, token="")

Function to show a dialog for entering a token.

parent (QWidget)
reference to the parent widget
title (str)
title of the dialog
label (str)
message text to be shown
token (str (optional))
token string to be set (defaults to "")
Return:
tuple containing the entered token string and a flag indicating that the 'Ok' button was pressed
Return Type:
tuple of (str, bool)
Up